package com.zhiwang.planet.mvvm.model.entity

import com.google.gson.annotations.SerializedName

class Reward(var id: String,
             @SerializedName("goods_name")
             var name: String,
             var status: Int,
             var status_txt: String,
             @SerializedName("draw_time")
             var withdrawTime: Long,
             @SerializedName("trade_time")
             var time: String) {
    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as Reward

        if (id != other.id) return false
        if (name != other.name) return false
        if (time != other.time) return false

        return true
    }

    override fun hashCode(): Int {
        var result = id.hashCode()
        result = 31 * result + name.hashCode()
        result = 31 * result + time.hashCode()
        return result
    }
}